<div class="bjui-pageHeader">
        <form id="pagerForm" data-toggle="ajaxsearch" action="{url}" method="post">
                <input type="hidden" name="pageSize" value="{$numPerPage}" >
                <input type="hidden" name="pageCurrent" value="{$currentPage}">
                <input type="hidden" name="orderField" value="{$orderField}">
                <input type="hidden" name="orderDirection" value="{$orderDirection}">
                <label>问题关键字：</label>
                <input  name="content" type="text" class="textInput" value="{$_REQUEST.content|default=''}"class="form-control" size="15" />
                <label>线路id：</label>
                <input name="tours_id" type="text" class="textInput" value="{$_REQUEST.tours_id|default=''}" class="form-control" size="15" />
                <button type="submit"  class="btn-default" data-icon="search">查询</button>
                <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
                <div class="bjui-searchBar">
                        <ul >
                                <li>
                                        <a href="{:U('Sales/zixun_del')}" data-idname="id" data-group="id" data-toggle="doajaxchecked"  class="btn btn-red"  data-confirm-msg="确定要删除选中的信息吗？">删除选中</a>
                                </li>
                        </ul>
                </div>
        </form>

</div>

<div class="bjui-pageContent">
        <table data-toggle="tablefixed" data-height='auto' data-width="100%" data-layout-h="0" data-nowrap="true">
                <thead>
                        <tr>
                                <th width="22">
                                        <input type="checkbox" class="checkboxCtrl" data-group="id" data-toggle="icheck">
                                </th>
                                <th data-order-field="id">ID</th>
                                <th width="350">线路标题</th>
                                <th>咨询内容</th>
                                <th align="center" width="100">手机号码</th>
                                <th align="center" width="80">回复</th>
                                <th align="center" width="90">操作人</th>
                                <th width="140" align="center" data-order-field="create_time">咨询时间</th>
                                <th width="80">操作</th>
                        </tr>
                </thead>
                <tbody>
                        {neq name="list" value=''}
                        {volist name='list' id='vo'}
                        <tr>
                                <td>
                                        <input type="checkbox" name="id" data-toggle="icheck" value="{$vo.id}">
                                </td>
                                <td width="40">{$vo.id}</td>
                                <td>
                                        <a href="{$vo.tours_url}" target="_blank">{$vo.title}</a>
                                </td>
                                <td> {$vo.content}  </td>
                                <td>{$vo.phone}</td>
                                {empty name="vo.reply"}
                                <td style="color:red;font-weight: bold;">未回复</td>
                                {else /}
                                <td style="color:blue;font-weight: bold;">已回复</td>
                                {/empty}
                                <td>{empty name="vo.username"}--{else /}{$vo.username}{/empty}</td>
                                <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                <td>
                                        <a href="{:U('Sales/zixun_reply?id='.$vo['id'])}" class="btn btn-green" data-height="400" data-toggle="dialog" data-mask='true' data-id="dialog-mask" data-title="回复">回复</a>
                                        <a href="{:U('Sales/zixun_del?id='.$vo['id'])}"  class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                                </td>
                        </tr>
                        {/volist}
                        {else /}
                        <tr><td colspan="15" align="center">暂无新订单</td></tr>
                        {/neq}
                </tbody>
        </table>

</div>
<div class="bjui-pageFooter">
        <div class="pages">
                <span> 每页&nbsp;</span>
                <div class="selectPagesize">
                        <select data-toggle="selectpicker" data-toggle-change="changepagesize" class="show-tick" >
                                <option {eq name="numPerPage" value="20"} selected="selected" {/eq} value="20">20</option>
                                <option {eq name='numPerPage' value='40'} selected="selected" {/eq} value="40">40</option>
                                <option {eq name='numPerPage' value='120'} selected="selected" {/eq} value="120">120</option>
                                <option {eq name='numPerPage' value='150'} selected="selected" {/eq} value="150">150</option>
                        </select>
                </div>
                <span>&nbsp;条,共 {$totalCount} 条 </span>


        </div>
        <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
</div>


